package com.asiainfo.dao;

import javax.annotation.Resource;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.MessageSource;
import org.springframework.stereotype.Component;


@Component
public class BaseDao
{

  @Resource
  private SqlSession session;

  @Autowired
  protected MessageSource messageSource;

  public void setSession(SqlSession session)
  {
    this.session = session;
  }

  public SqlSession getDAO()
  {
    return this.session;
  }

  public MessageSource getMessageSource()
  {
    return this.messageSource;
  }
}
